package com.alibaba.utils;

import java.security.SecureRandom;

/**
 *
 * @author ZhouYaDong
 * @date 2025/9/25
 * @description
 */
public class CodeUtil {

    private static final SecureRandom RANDOM = new SecureRandom();

    /** 生成 6 位纯数字验证码 */
    public static String generate6DigitCode() {
        int code = 100000 + RANDOM.nextInt(900000);
        return String.valueOf(code);
    }

}
